package object;

/**
 * 2024/5/12
 */
public class Test {
    public static void main(String[] args) {
        Student s = new Student();
        s.setName("巴拉");
        s.chinese=90.88;
        s.math=70.22;
        s.printTotalScore();
        s.printAvgScore();

        Student s2 = new Student();
        s2.setName("波仔");
        s2.chinese=100;
        s2.math=90;
        s2.setScore(100);
        s2.printTotalScore();
        s2.printAvgScore();

        System.out.println(s);
        System.out.println(s2);
        System.out.println(s2.getName());
        System.out.println(s2.getScore());

        s2.printPass();

        StudentOperator operator = new StudentOperator(s2);
        operator.printPass();
    }



    /**
     * 1.面向对象编程有啥好处？
     *   面向对象把实体类进行封装，方便进行随时调用
     *
     * 2.对象是啥？如何得到？
     * 对象就是一种特殊的数据结构
     *
     * 3.面向对象编程这种套路是咋回事？
     *  万物皆对象 谁的数据谁处理
     **/

}
